package com.heima.regex;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class StudyPattern {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Pattern p = Pattern.compile("a*b");
		Matcher m = p.matcher("aaaab");
		Boolean b = m.matches();
		System.out.println(b);
	}

}
